package kkb.IOTest;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Reader;
import java.util.Properties;

// 日志文件 操作
public class PropertiesTest {

    public static void main(String[] args) throws IOException {

        Properties properties = new Properties();
        Reader reader = new FileReader("D://appleLog.properties");
        //把读取到的内容加载成map
        properties.load(reader);
        System.out.println(properties.getProperty("appler"));
        System.out.println(properties.getProperty("money"));


    }
}
